package ltu.temp;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class ltuTempSettingsActivity extends TabActivity {
	@Override
	public void onCreate(Bundle savedInstanceState) {
		  super.onCreate(savedInstanceState);
	      setContentView(R.layout.settingsview); 
		
		//Your code here
	      
	        TabHost tabHost = getTabHost();
	      
	        // Tab for All locations
	        TabSpec allspec = tabHost.newTabSpec("All");
	        // setting Title and Icon for the Tab
	        allspec.setIndicator("All");
	        Intent photosIntent = new Intent(this, AllLocationActivity.class);
	        allspec.setContent(photosIntent);
	 
	        // Tab for universities
	        TabSpec unispec = tabHost.newTabSpec("Universities");
	        unispec.setIndicator("Universities");
	        Intent songsIntent = new Intent(this, UniversityLocationActivity.class);
	        unispec.setContent(songsIntent);
	 
	        // Tab for close
	        TabSpec closespec = tabHost.newTabSpec("Close");
	        closespec.setIndicator("Close");
	        Intent videosIntent = new Intent(this, CloseLocationActivity.class);
	        closespec.setContent(videosIntent);
	 
	        // Adding all TabSpec to TabHost
	        tabHost.addTab(allspec); // Adding photos tab
	        tabHost.addTab(unispec); // Adding songs tab
	        tabHost.addTab(closespec); // Adding videos tab
	               
	            
	
	}
	
}
